#include "baffle.h"

CBaffle::CBaffle()
{

}

void CBaffle::moveLeft(){



    setPostion(getX() -20,getY());
}

void CBaffle::moveRight(){
    setPostion(getX() +20,getY());
}

void CBaffle::paint(QPainter *painter)
{
    painter->setBrush(Qt::blue);
    painter->drawRect(
                    static_cast<int>(getX()),
                    static_cast<int>(getY()),
                    static_cast<int>(getWidth()),
                    static_cast<int>(getHeght()));
}


